package cn.engage.org.service;

import cn.engage.basic.PageList;
import cn.engage.org.domain.Department;
import cn.engage.query.DepartmentQuery;

import java.util.List;

public interface DepartmentService {
    // 添加
    void add(Department department);

    // 修改
    void update(Department department);

    // 根据id删除
    void delete(Long id);

    // 查询所有
    List<Department> findAll();

    // 根据id查询一个
    Department findById(Long id);

    // 分页查询
    PageList<Department> queryByPage(DepartmentQuery query);
}
